//
//  ManyPageViewController.h
//  FCTools
//
//  Created by WJC on 2018/10/25.
//  Copyright © 2018 wjc. All rights reserved.
//

#import <UIKit/UIKit.h>
@protocol ManyPageDelegate <NSObject>

/**
 顶部按钮点击(使用该代理返回false点击不会滑动)
 
 */
-(BOOL)topBtnClickWithButton:(UIButton*)sender;

/**
 重置scrollview调用这个代理
 
 */
-(void)resetScrollViewWithTopScrollView:(UIScrollView*)topscrollView andContentScrollView:(UIScrollView*)contentscrollView;

/**
 scrollview滑动代理
 */
-(void)scrollViewdidScrollWithScrollView:(UIScrollView*)topscrollView andContentScrollView:(UIScrollView*)contentscrollView andCurrentPage:(int)page;
@end
@interface ManyPageViewController : UIViewController
/**
 搜索代理
 */
@property(nonatomic,weak) id<ManyPageDelegate> delegate;

/**
 顶部标题
 */
@property (nonatomic,strong) NSArray *topTitle;


/**
 控制器
 */
@property (nonatomic,strong) NSMutableArray *contentCotrollerArr;
-(void)setContent;
-(void)setTableContent;
-(void)refreshTopScroll;

/**
 顶部按钮
 */
@property (nonatomic,strong) NSMutableArray <UIButton*>*topBtnArr;
    //控件
@property (nonatomic,strong) UIScrollView*scrollView;
@property (nonatomic,strong) UIScrollView*contentScrollView;
@property (nonatomic,strong) UIView *topLineView;
@property (nonatomic,assign) NSInteger currentPage;
@property (nonatomic,assign) BOOL currentPageAnimate;
@property (nonatomic,assign) CGFloat toTopScroll;
/** 是不是企业云页面 */
@property (nonatomic,assign) BOOL isClound;


@property (assign, nonatomic)  CGFloat topHeight;
@property (assign, nonatomic)  CGFloat topLineHeight;
@property (assign, nonatomic)  CGFloat btnInset;
@property (strong, nonatomic)  UIColor *btnColor;
@property (strong, nonatomic)  UIColor *btnBackColor;
@property (strong, nonatomic)  UIColor *choiceBtnColor;
/**
 顶部标题选中颜色
 */
@property (nonatomic,strong) UIColor *topTitleSelectColor;
/**
 顶部标题选中背景颜色
 */
@property (nonatomic,strong) UIColor *topTitleSelectBackColor;
/// 顶部标题选择字体
@property (nonatomic, assign) NSInteger topTitleSelectFont;
/// 下划线颜色
@property (nonatomic, strong) UIColor *lineColor;

@end
